﻿using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using DFT.DB;

namespace DFT.AJAX
{
    public partial class UpdateProfileUser : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Int64 profId = Int64.Parse(Request.Form["profId"]);
            String fName = Request.Form["fName"];
            String lName = Request.Form["lName"];
            String gender = Request.Form["gender"];
            String birthDate = Request.Form["birthDate"];
            String country = Request.Form["country"];
            String city = Request.Form["city"];
            String isDeath = Request.Form["isDeath"];
            String deathDt = Request.Form["deathDt"];
            String address = Request.Form["address"];
            String socialStatus = Request.Form["socialStatus"];
            String acadimicQual = Request.Form["acadimicQual"];
            String blodType = Request.Form["blodType"];
            String religion = Request.Form["religion"];
            Byte[] image = new Byte[0];
            String imageType = "-1";

            if (Session["imageByteArr"] != null)
            {
                image = (Byte[])Session["imageByteArr"];
                imageType = Session["imageContentType"].ToString();
            }

            if (DBManager.UpdateProfileUser(profId, fName, lName, address, birthDate, gender, isDeath, deathDt, socialStatus, acadimicQual, country, city, blodType, religion, image, imageType))
            {
            }

        }
    }
}